package me.fung.rem.app.content

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material.FloatingActionButton
import androidx.compose.material.Icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.unit.dp
import me.fung.rem.app.rem_editor.PAGE_REM_EDITOR
import me.fung.rem.app.navigation

@Composable
fun buttonAdd(modifier: Modifier) {
    Box(modifier) {
        FloatingActionButton(
            modifier = Modifier.padding(bottom = 10.dp, end = 10.dp).alpha(0.7f),
            onClick = {
                navigation.goto(PAGE_REM_EDITOR)
            },
        ) {
            Icon(Icons.Default.Add, "添加")
        }
    }
}